﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="UCSelectAssetNO.ascx.cs"
    Inherits="InstrumentCheck.WebUI.UserControl.UCSelectAssetNO" %>
<script type="text/javascript" language="javascript">
    function returnValue(strAssetNO, strKeepDept, strKeeperName, strChiName, strSpec, strBrand, strModel, strKeeperNO) {
        SetAssetSelectedValue(strAssetNO, strKeepDept, strKeeperName, strChiName, strBrand, strSpec, strModel, strKeeperNO);
    }
</script>  
<table style="width: 600px;background-color:White;vertical-align:top;">
    <tr style="background-color:#A9BFF9;height:10px;">
        <td style="text-align:left;" colspan="3">
            <table>
                <tr>
                    <td style="width:98%;text-align:left;font-weight:bold;">儀器校驗系統</td>
                    <td style="width:2%;text-align:right"><img src="../images/close.jpg" alt="Close" onclick="Unlock();" onmouseover="this.style.cursor='hand'" /></td>
                </tr>
            </table> 
        </td>
    </tr>
    <tr align="left">
        <td colspan="2">
            資產編號：<asp:TextBox ID="txtAssetNO" runat="server"></asp:TextBox>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnQuery" runat="server" Text="開始查找" OnClick="btnQuery_Click" />
        </td>       
        <td>
        </td>
    </tr>
    <tr>
        <td colspan="3" style="height:30px"></td>
    </tr>
    <tr>
        <td colspan="3">
            <asp:GridView ID="gvAssetNO" Width="600px" runat="server" 
                AutoGenerateColumns="False" OnRowDataBound="gvAssetNO_RowDataBound" 
                AllowPaging="True" onpageindexchanging="gvAssetNO_PageIndexChanging">
                <Columns>
                    <asp:BoundField DataField="AssetNO" HeaderText="資產編號" />
                    <asp:BoundField HeaderText="保管部門" />
                    <asp:BoundField HeaderText="保管人" />
                    <asp:BoundField DataField="ChiName" HeaderText="品名" />
                    <asp:BoundField DataField="Spec" HeaderText="規格" />
                    <asp:BoundField DataField="Brand" HeaderText="廠牌" />
                    <asp:BoundField DataField="ModelNO" HeaderText="型號" />
                    <asp:BoundField HeaderText="工號" />
                </Columns>
            </asp:GridView>
        </td>
    </tr>
</table>
<asp:TextBox runat="server" CssClass="hide" ID="txtQueryTableName" />